import request from '@/utils/request'

// 查询生产指标列表
export function listDispatchProductionIndicators(query) {
  return request({
    url: '/system/dispatchProductionIndicators/list',
    method: 'get',
    params: query
  })
}

// 查询生产指标详细
export function getDispatchProductionIndicators(productionIndicatorsId) {
  return request({
    url: '/system/dispatchProductionIndicators/' + productionIndicatorsId,
    method: 'get'
  })
}

// 新增生产指标
export function addDispatchProductionIndicators(data) {
  return request({
    url: '/system/dispatchProductionIndicators',
    method: 'post',
    data: data
  })
}

// 修改生产指标
export function updateDispatchProductionIndicators(data) {
  return request({
    url: '/system/dispatchProductionIndicators',
    method: 'put',
    data: data
  })
}

// 删除生产指标
export function delDispatchProductionIndicators(productionIndicatorsId) {
  return request({
    url: '/system/dispatchProductionIndicators/' + productionIndicatorsId,
    method: 'delete'
  })
}
